import '../model/BaseVO.dart';

///
/// 简单车贷信息（用于列表显示）
///
class LoanApplySimple extends BaseVO {
  // 贷款客户信息
  /// 姓名, 对应表中name */
  String name;

  // 车辆信息部分
  /// 客户来源, 对应表中customer_source */
  String customerSource;

  /// 上牌类型, 对应表中car_no_type */
  String carNoType;

  /// 上牌地, 对应表中car_no_place */
  String carNoPlace;

  /// 车型, 对应表中car_type */
  String carType;

  /// 车价（发票价）, 对应表中car_price */
  String carPrice;

  /// 汽车排量, 对应表中car_displacement */
  String carDisplacement;

  /// 是否进口, 对应表中car_import */
  int carImport = 0;

  /// 上牌日期, 对应表中car_no_date */
  String carNoDate;

  /// 抵押日期, 对应表中car_mortgage_date */
  String carMortgageDate;

  /// 经销商ID, 对应表中partner_id */
  int partnerId;

  // 贷款信息部分
  /// 借款银行, 对应表中loan_bank */
  String loanBank;

  /// 借款金额, 对应表中loan_value */
  String loanValue;

  /// 财务放款日期, 对应表中finance_loan_date */
  String financeLoanDate;

  /// 接收日期, 对应表中take_date */
  String takeDate;

  /// 放贷日期, 对应表中loan_date */
  String loanDate;

  // 费用信息部分
  /// 应收费用, 对应表中expense_sum */
  String expenseSum = "0.00";

  /// 贷款支付确认日期, 对应表中pay_confirm_date */
  String payConfirmDate;

  /// 贷款支付日期类型, 对应表中pay_date_type */
  int payDateType = 0;

  /// 贷款支付承诺日期, 对应表中pay_promise_date */
  String payPromiseDate;

  /// 贷款支付承诺工作日, 对应表中pay_promise_days */
  int payPromiseDays = 0;

  /// 综合代理费结算方式, 对应表中agent_closing_type */
  int agentClosingType = 0;

  /// 综合代理费付款日期类型, 对应表中agent_pay_date_type */
  int agentPayDateType = 0;

  /// 综合代理费付款日期, 对应表中agent_pay_date */
  String agentPayDate;

  /// 综合代理费合计, 对应表中agent_sum */
  String agentSum = "0.00";

  /// 减免合计, 对应表中reduce_sum */
  String reduceSum = "0.00";

  // 基本信息
  /// 申请单编号, 对应表中apply_code */
  String applyCode;

  /// 申请来源，0-传统，1-公众号, 对应表中apply_from */
  int applyFrom = 0;

  /// 申请时间, 对应表中apply_time */
  String applyTime;

  /// 业务经理ID, 对应表中service_user_id */
  int serviceUserId;

  /// 当前审批对应任务 */
  String taskId = "";

  /// 状态，-1-删除，0-输机草稿，1-审批中，8-拒贷，9-归档, 对应表中status */
  int status = 0;

  // 界面显示
  /// 当前审批对应任务名称 */
  String taskName = "";

  /// 当前审批对应任务处理人 */
  String taskAssignee = "";

  /// 经销商名称 */
  String partnerName = "";

  /// 业务经理姓名 */
  String serviceUserName = "";

  /// 所属地区名称 */
  String areaName = "";

  /// 是否审批超时 */
  bool approveTimeout = false;

  LoanApplySimple({
    this.name,
    this.customerSource,
    this.carNoType,
    this.carNoPlace,
    this.carType,
    this.carPrice,
    this.carDisplacement,
    this.carImport,
    this.carNoDate,
    this.carMortgageDate,
    this.partnerId,
    this.partnerName,
    this.loanBank,
    this.loanDate,
    this.loanValue,
    this.expenseSum,
    this.payConfirmDate,
    this.payDateType,
    this.payPromiseDate,
    this.payPromiseDays,
    this.agentClosingType,
    this.agentPayDate,
    this.agentPayDateType,
    this.agentSum,
    this.reduceSum,
    this.applyCode,
    this.applyFrom,
    this.applyTime,
    this.serviceUserId,
    this.serviceUserName,
    this.taskId,
    this.status,
    this.taskName,
    this.takeDate,
    this.taskAssignee,
    this.areaName,
    this.financeLoanDate,
    this.approveTimeout,
  });
}
